package com.wcl.demo.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.webkit.WebView;
import android.widget.TextView;

import com.baidu.mapapi.search.poi.PoiDetailResult;
import com.wcl.demo.R;

/**
 * Created by dllo on 15/12/5.
 */
public class FindDetailActivity extends BaseActivity{
    private TextView addressTv , adress_nameTv;
    private WebView finddetailWeb;

    @Override
    protected int getLayout() {
        return R.layout.activity_find_detail;
    }

    @Override
    protected void initView() {
        addressTv = (TextView) findViewById(R.id.addressTv);
        adress_nameTv = (TextView) findViewById(R.id.adress_nameTv);
        finddetailWeb = (WebView) findViewById(R.id.finddetailWeb);
    }

    @Override
    protected void initData() {
        Intent intent = getIntent();
        String address = intent.getStringExtra("address");
        String name = intent.getStringExtra("name");
        String url = intent.getStringExtra("url");
        String phone = intent.getStringExtra("phone");
        Log.i("url" , url);
        finddetailWeb.loadUrl(url);
        addressTv.setText(address);
        adress_nameTv.setText(name);
    }
}
